<?php
use app\assets\AdminLoginAsset;

AdminLoginAsset::register($this);
?>
<?php $this->beginPage();?>

<!DOCTYPE html>
<html class="login-bg">
<head>
    <title>商城 - 后台管理</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

   <?php $this->head();?>


    <!-- open sans font -->


    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>
<?php $this->beginBody();?>

<div class="row-fluid login-wrapper">
    <a class="brand" href="index.html"></a>

    <div class="span4 box">
        <div class="content-wrap">
            <h6>商城 - 后台管理</h6>
            <input class="span12" type="text" placeholder="管理员账号" />
            <input class="span12" type="password" placeholder="管理员密码" />
            <a href="#" class="forgot">忘记密码?</a>
            <div class="remember">
                <input id="remember-me" type="checkbox" />
                <label for="remember-me">记住我</label>
            </div>
            <a class="btn-glow primary login" href="index.html">登录</a>
        </div>
    </div>

    <div class="span4 no-account">
        <p>没有账户?</p>
        <a href="signup.html">注册</a>
    </div>
</div>

<!-- scripts -->

<!-- pre load bg imgs -->
<?php
$js = <<<JS
    $(function () {
        // bg switcher
        var $btns = $(".bg-switch .bg");
        $btns.click(function (e) {
            e.preventDefault();
            $btns.removeClass("active");
            $(this).addClass("active");
            var bg = $(this).data("img");

            $("html").css("background-image", "url('/admin/img/bgs/" + bg + "')");
        });

    });
JS;
$this->registerJs($js);

?>
<?php $this->endBody();?>
</body>
</html>
<?php $this->endPage();?>